package com.HQCourse.live.service.impl;


import com.HQCourse.live.mapper.LiveCourseAccountMapper;
import com.HQCourse.live.service.LiveCourseAccountService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.HQCourse.model.live.LiveCourse;
import com.example.HQCourse.model.live.LiveCourseAccount;
import com.example.HQCourse.model.live.LiveCourseConfig;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 直播课程账号表（受保护信息） 服务实现类
 * </p>
 *
 * @author zww
 * @since 2023-07-13
 */
@Service
public class LiveCourseAccountServiceImpl extends ServiceImpl<LiveCourseAccountMapper, LiveCourseAccount> implements LiveCourseAccountService {
   //获取直播课程信息
    @Override
    public LiveCourseAccount getByLiveCourseId(Long id) {
        LambdaQueryWrapper<LiveCourseAccount> wrapper=new LambdaQueryWrapper<>();
        wrapper.eq(LiveCourseAccount::getLiveCourseId,id);
        LiveCourseAccount account = baseMapper.selectOne(wrapper);
        return account;
    }


}
